package ru.ccfit.nsu.g7204.dronov.adPlatform;

/**
 * Created by IntelliJ IDEA.
 * User: Drongo
 * Date: 28.03.11
 * Time: 18:37
 * To change this template use File | Settings | File Templates.
 */
public class SettingsFormController implements SettingsFormListener{
    private Settings currentSettings;


    public SettingsFormController(Settings currentSettings) {
        this.currentSettings = currentSettings;
    }

    public String getPort() {
        return currentSettings.getPort()+"";
    }

    public String getDbUrl() {
        return currentSettings.getDbUrl();
    }

    public String getUser() {
        return currentSettings.getDbUser();
    }

    public String getUserPass() {
        return currentSettings.getDbUserPass();
    }

    public void setPort(int port) {
        currentSettings.setPort(port);
    }

    public void setDbUrl(String dbUrl) {
        currentSettings.setDbUrl(dbUrl);
    }

    public void setDbUser(String dbUser) {
        currentSettings.setDbUser(dbUser);
    }

    public void setDbUserPass(String dbUserPass) {
        currentSettings.setDbUserPass(dbUserPass);
    }
}
